home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / VT_KERN.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  3KB  |  95 lines

  1. #ifndef _VT_KERN_H
  2. #define _VT_KERN_H
  3.  
  4. /*
  5.  * this really is an extension of the vc_cons structure in console.c, but
  6.  * with information needed by the vt package
  7.  */
  8.  
  9. #include <linux/config.h>
  10. #include <linux/vt.h>
  11.  
  12. /*
  13.  * Presently, a lot of graphics programs do not restore the contents of
  14.  * the higher font pages.  Defining this flag will avoid use of them, but
  15.  * will lose support for PIO_FONTRESET.  Note that many font operations are
  16.  * not likely to work with these programs anyway; they need to be
  17.  * fixed.  The linux/Documentation directory includes a code snippet
  18.  * to save and restore the text font.
  19.  */
  20. #ifdef CONFIG_VGA_CONSOLE
  21. #define BROKEN_GRAPHICS_PROGRAMS 1
  22. #endif
  23.  
  24. extern struct vt_struct {
  25.     int vc_num;                /* The console number */
  26.     unsigned char    vc_mode;        /* KD_TEXT, ... */
  27.     struct vt_mode    vt_mode;
  28.     int        vt_pid;
  29.     int        vt_newvt;
  30.     struct wait_queue *paste_wait;
  31. } *vt_cons[MAX_NR_CONSOLES];
  32.  
  33. void (*kd_mksound)(unsigned int hz, unsigned int ticks);
  34.  
  35. /* console.c */
  36.  
  37. struct console_font_op;
  38. struct consw;
  39.  
  40. int vc_allocate(unsigned int console);
  41. int vc_cons_allocated(unsigned int console);
  42. int vc_resize(unsigned int lines, unsigned int cols,
  43.           unsigned int first, unsigned int last);
  44. #define vc_resize_all(l, c) vc_resize(l, c, 0, MAX_NR_CONSOLES-1)
  45. #define vc_resize_con(l, c, x) vc_resize(l, c, x, x)
  46. void vc_disallocate(unsigned int console);
  47. void reset_palette(int currcons);
  48. void set_palette(int currcons);
  49. void do_blank_screen(int gfx_mode);
  50. void unblank_screen(void);
  51. void poke_blanked_console(void);
  52. int con_font_op(int currcons, struct console_font_op *op);
  53. int con_set_cmap(unsigned char *cmap);
  54. int con_get_cmap(unsigned char *cmap);
  55. void scrollback(int);
  56. void scrollfront(int);
  57. void update_region(int currcons, unsigned long start, int count);
  58. void redraw_screen(int new_console, int is_switch);
  59. #define update_screen(x) redraw_screen(x, 0)
  60. #define switch_screen(x) redraw_screen(x, 1)
  61.  
  62. struct tty_struct;
  63. int tioclinux(struct tty_struct *tty, unsigned long arg);
  64.  
  65. /* consolemap.c */
  66.  
  67. struct unimapinit;
  68. struct unipair;
  69.  
  70. int con_set_trans_old(unsigned char * table);
  71. int con_get_trans_old(unsigned char * table);
  72. int con_set_trans_new(unsigned short * table);
  73. int con_get_trans_new(unsigned short * table);
  74. int con_clear_unimap(int currcons, struct unimapinit *ui);
  75. int con_set_unimap(int currcons, ushort ct, struct unipair *list);
  76. int con_get_unimap(int currcons, ushort ct, ushort *uct, struct unipair *list);
  77. int con_set_default_unimap(int currcons);
  78. void con_free_unimap(int currcons);
  79. void con_protect_unimap(int currcons, int rdonly);
  80. int con_copy_unimap(int dstcons, int srccons);
  81.  
  82. /* vt.c */
  83.  
  84. extern unsigned int video_font_height;
  85. extern unsigned int default_font_height;
  86. extern unsigned int video_scan_lines;
  87.  
  88. void complete_change_console(unsigned int new_console);
  89. int vt_waitactive(int vt);
  90. void change_console(unsigned int);
  91. void reset_vc(unsigned int new_console);
  92. int vt_waitactive(int vt);
  93.  
  94. #endif /* _VT_KERN_H */
  95.